<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/financier.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateRapprochementTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:form>
                <h:panelGrid columns="3">
                    <h:outputLabel value="#{bundle.CreateRapprochementLabel_nomRapprochement}" for="nomRapprochement" />
                    <p:inputText id="nomRapprochement" required="true" value="#{rapprochementController.selected.nomRapprochement}" title="#{bundle.CreateRapprochementTitle_nomRapprochement}" />
                    <p:message for="nomRapprochement"/>
                    <h:outputLabel value="#{bundle.CreateRapprochementLabel_identifiantReleve}" for="identifiantReleve" />
                    <p:inputText id="identifiantReleve" value="#{rapprochementController.selected.identifiantReleve}" title="#{bundle.CreateRapprochementTitle_identifiantReleve}" />
                    <p:message for="identifiantReleve"/>
                    <h:outputLabel value="#{bundle.CreateRapprochementLabel_compteAssocie}" for="compteAssocie" />
                    <p:selectOneMenu id="compteAssocie" required="true" value="#{rapprochementController.selected.compteAssocie}" title="#{bundle.CreateRapprochementTitle_compteAssocie}" >
                        <f:selectItems value="#{comptesController.itemsAvailableSelectOne}"/>
                    </p:selectOneMenu>
                    <p:message for="compteAssocie"/>
                    <h:outputLabel value="#{bundle.CreateRapprochementLabel_montantCreditRapproche}" for="montantCreditRapproche" />
                    <p:inputText id="montantCreditRapproche" value="#{rapprochementController.selected.montantCreditRapproche}" title="#{bundle.CreateRapprochementTitle_montantCreditRapproche}" />
                    <p:message for="montantCreditRapproche"/>
                    <h:outputLabel value="#{bundle.CreateRapprochementLabel_montantDebitRapproche}" for="montantDebitRapproche" />
                    <p:inputText id="montantDebitRapproche" value="#{rapprochementController.selected.montantDebitRapproche}" title="#{bundle.CreateRapprochementTitle_montantDebitRapproche}" />
                    <p:message for="montantDebitRapproche"/>
                    <h:outputLabel value="#{bundle.CreateRapprochementLabel_montantTotalCredit}" for="montantTotalCredit" />
                    <p:inputText id="montantTotalCredit" value="#{rapprochementController.selected.montantTotalCredit}" title="#{bundle.CreateRapprochementTitle_montantTotalCredit}" />
                    <p:message for="montantTotalCredit"/>
                    <h:outputLabel value="#{bundle.CreateRapprochementLabel_montantTotalDebit}" for="montantTotalDebit" />
                    <p:inputText id="montantTotalDebit" value="#{rapprochementController.selected.montantTotalDebit}" title="#{bundle.CreateRapprochementTitle_montantTotalDebit}" />
                    <p:message for="montantTotalDebit"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{rapprochementController.create}" value="#{bundle.CreateRapprochementSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{rapprochementController.prepareList}" value="#{bundle.CreateRapprochementShowAllLink}" immediate="true"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
